//  医院详情
//  MyHospitolViewController.m
//  yilutongxing
//
//  Created by  Mac on 2017/5/7.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "MyHospitolViewController.h"
#import "RPHospitalInfoDetail.h"

#define URL_GetHospitalinfo @"/api/hospitals/"

@interface MyHospitolViewController ()
@property (nonatomic, strong) RPHospitalInfoDetail *hospitalInfo;
@end

@implementation MyHospitolViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"广东省中医院";
    UIImage *leftImage=[[UIImage imageNamed:@"返回"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIBarButtonItem *leftButtonItem=[[UIBarButtonItem alloc]initWithImage:leftImage style:UIBarButtonItemStylePlain target:self action:@selector(back)];
    self.navigationItem.leftBarButtonItem=leftButtonItem;
    
    [[YZENetwork sharedInstace]getRequestWithUrl:[NSString stringWithFormat:@"%@%@%@", BASE, URL_GetHospitalinfo, self.hospitalID]
                                parameters:nil delegate:self requestTag:1 successBlock:^(id responseObject) {
        self.hospitalInfo = [RPHospitalInfoDetail mj_objectWithKeyValuesAdd:responseObject];
    }];
}

-(void)back{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
@end
